{% assign prisms1 = "coy,dark,funky,okaidia,solarizedlight,tomorrow,twilight" | split: "," %}
{% assign prisms2 =
"a11y-dark,atom-dark,base16-ateliersulphurpool.light,cb,coldark-cold,coy-without-shadows,darcula,duotone-dark,duotone-earth,duotone-light,dutone-sea,dutone-space,ghcolors,gruvbox-dark,gruvbox-light,holi-theme,hopscotch,lucario,material-dark,material-light,material-oceanic,night-owl,nord,one-dark,one-light,pojoaque,shades-of-purple,solarized-dark-atom,synthwave84,vs,vsc-dark-plus,xonokai,z-touch"
| split: "," %}
{% if prisms1 contains site.prism.theme %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs/themes/prism-{{site.prism.theme}}.min.css" />
{% else if prisms2 contains site.prism.theme %}
<link rel="stylesheet"
    href="https://cdn.jsdelivr.net/npm/prism-themes/themes/prism-{{site.prism.theme}}.min.css" />
{% else %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs/themes/prism.min.css" />
{% endif %}
{% if site.prism.line_numbers %}
<link rel="stylesheet"
    href="https://cdn.jsdelivr.net/npm/prismjs/plugins/line-numbers/prism-line-numbers.min.css">
{% endif %}